package com.itheima.lambda3;

public class TestLambda3 {
    public static void main(String[] args) {
        useCalculate(14, 25, new Calculate() {
            @Override
            public int calculate(int a, int b) {
                return a+b;
            }
        });
    }

    public static int useCalculate(int a, int b,Calculate calculate){

        int calculate1 = calculate.calculate(a,b);
        System.out.println(calculate1);
        return calculate1;
    }
}
